package g11.model;

import java.io.Serializable;
import java.util.Set;

public class Employee extends User implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -883080689220169672L;

	private String department;
	private String title;
	private Set<WorkFor> workforSet;
	private Set<PatientAssignment> patientAssignmentSet;

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public Set<WorkFor> getWorkforSet() {
		return workforSet;
	}

	public void setWorkforSet(Set<WorkFor> workforSet) {
		this.workforSet = workforSet;
	}

	public Set<PatientAssignment> getPatientAssignmentSet() {
		return patientAssignmentSet;
	}

	public void setPatientAssignmentSet(
			Set<PatientAssignment> patientAssignmentSet) {
		this.patientAssignmentSet = patientAssignmentSet;
	}

	@Override
	public boolean equals(Object obj) {
		/*
		 * add by Fern
		 */
		Employee other = (Employee) obj;
		if (this.getId() == other.getId()) {
			return true;
		} else

			return false;
	}

	@Override
	public String toString() {
		return "Employee [department=" + department + ", title=" + title
				+ ", workforSet=" + workforSet + ", patientAssignmentSet="
				+ patientAssignmentSet + "]";
	}

}
